package com.cskaoyan.service;

import org.springframework.stereotype.Service;

/**
 * @author stone
 * @date 2022/06/17 15:56
 */
@Service
public class UserServiceImpl implements UserService{
    @Override
    public void sayHello() {
        System.out.println("hello aspect");
    }

    @Override
    public int add(int num1,int num2) {
        int result = num1 + num2;
        System.out.println("相加结果为：" + result);
        return result;
    }

    @Override
    public void executeException() {
        System.out.println("搞事情");
        int i = 1 / 0;
    }


}
